package com.xx.service.impl;

import com.xx.dao.GoodsDao;
import com.xx.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    @Qualifier(value = "goodsDao")//指定获取的对象
    GoodsDao goodsDao;

    @Autowired
    @Qualifier(value = "goodsDao2")//指定获取的对象
    GoodsDao goodsDao2;

    public void showGoodsDetail() {
        goodsDao.showGoodsDetail();
    }

    public void showGoods2Detail() {
        goodsDao2.showGoodsDetail();
    }
}
